"use strict";
const common_vendor = require("../../../common/vendor.js");
if (!Array) {
  const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
  const _easycom_up_cell2 = common_vendor.resolveComponent("up-cell");
  const _easycom_up_list_item2 = common_vendor.resolveComponent("up-list-item");
  const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
  const _easycom_up_list2 = common_vendor.resolveComponent("up-list");
  const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
  (_easycom_up_radio2 + _easycom_up_cell2 + _easycom_up_list_item2 + _easycom_up_radio_group2 + _easycom_up_list2 + _easycom_up_toast2)();
}
const _easycom_up_radio = () => "../../../node-modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_up_cell = () => "../../../node-modules/uview-plus/components/u-cell/u-cell.js";
const _easycom_up_list_item = () => "../../../node-modules/uview-plus/components/u-list-item/u-list-item.js";
const _easycom_up_radio_group = () => "../../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js";
const _easycom_up_list = () => "../../../node-modules/uview-plus/components/u-list/u-list.js";
const _easycom_up_toast = () => "../../../node-modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
  (_easycom_up_radio + _easycom_up_cell + _easycom_up_list_item + _easycom_up_radio_group + _easycom_up_list + _easycom_up_toast)();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "selectServiceItem",
  setup(__props) {
    const options = common_vendor.ref([
      {
        id: 1,
        name: "服务态度"
      },
      {
        id: 2,
        name: "办事效率"
      },
      {
        id: 3,
        name: "有无“吃拿卡要”行为"
      },
      {
        id: 4,
        name: "其他"
      }
    ]);
    const selectUserIds = common_vendor.ref("");
    const uToastRef = common_vendor.ref(null);
    const onsubmit = () => {
      if (selectUserIds.value) {
        common_vendor.index.$emit("updateServiceItem", selectUserIds.value);
        common_vendor.index.navigateBack({
          delta: 1
        });
      } else {
        uToastRef.value.show({
          type: "warning",
          message: "请选择服务事项"
        });
      }
    };
    common_vendor.onLoad((options2) => {
      if (options2 && options2.itemName && options2.itemName != "undefined") {
        selectUserIds.value = options2.itemName;
      }
    });
    const scrolltolower = () => {
      loadmore();
    };
    const loadmore = () => {
      console.log("加载更多");
    };
    return (_ctx, _cache) => {
      return {
        a: common_vendor.f(common_vendor.unref(options), (item, index, i0) => {
          return {
            a: common_vendor.t(item.name),
            b: "a0b7bf3d-4-" + i0 + "," + ("a0b7bf3d-3-" + i0),
            c: common_vendor.p({
              activeColor: "#0189FE",
              name: item.name
            }),
            d: "a0b7bf3d-3-" + i0 + "," + ("a0b7bf3d-2-" + i0),
            e: index,
            f: "a0b7bf3d-2-" + i0 + ",a0b7bf3d-1"
          };
        }),
        b: common_vendor.o(($event) => common_vendor.isRef(selectUserIds) ? selectUserIds.value = $event : null),
        c: common_vendor.p({
          placement: "column",
          modelValue: common_vendor.unref(selectUserIds)
        }),
        d: common_vendor.o(scrolltolower),
        e: common_vendor.p({
          height: "calc(100vh - 64rpx - 83rpx - 20rpx)"
        }),
        f: common_vendor.o(onsubmit),
        g: common_vendor.sr(uToastRef, "a0b7bf3d-5", {
          "k": "uToastRef"
        })
      };
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-a0b7bf3d"]]);
wx.createPage(MiniProgramPage);
